<a href='http://github.com/angular/angular.js/edit/master/docs/content/error/$resource/badmember.ngdoc' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this doc</a>


<h1>Error: $resource:badmember
  <div><span class='hint'>Syntax error in param value using @member lookup</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Dotted member path "@{0}" is invalid.">Dotted member path "@{0}" is invalid.</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>Occurs when there is a syntax error when attempting to extract a param
value from the data object.</p>
<p>Here&#39;s an example of valid syntax for <code>params</code> or <code>paramsDefault</code>:</p>
<pre><code class="lang-javascript">{
  bar: &#39;@foo.bar&#39;
}</code></pre>
<p>The part following the <code>@</code>, <code>foo.bar</code> in this case, should be a simple
dotted member lookup using only ASCII identifiers.  This error occurs
when there is an error in that expression.  The following are all syntax
errors</p>
<table>
<thead>
<tr>
<th>Value</th>
<th>Error</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>@</code></td>
<td>Empty expression following <code>@</code>.</td>
</tr>
<tr>
<td><code>@1.a</code></td>
<td><code>1</code> is an invalid javascript identifier.</td>
</tr>
<tr>
<td><code>@.a</code></td>
<td>Leading <code>.</code> is invalid.</td>
</tr>
<tr>
<td><code>@a[1]</code></td>
<td>Only dotted lookups are supported (no index operator)</td>
</tr>
</tbody>
</table>

</div>


